package com.hzlx.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("smd_order")
@Builder
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("order_number")
    private String orderNumber;
    @TableField("created_time")
    private Date createdTime;
    @TableField("owner_id")
    private Long ownerId;
    @TableField(exist = false)
    private List<OrderLineItem> orderLineItemList;
}